home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 244 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: fido.asd.sgi.com!austern
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Are all Windows programs ill-formed?
  5. Date: 02 Feb 1996 14:00:26 PST
  6. Organization: self-employed
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4es43g$g4m@news.bridge.net>
  9. References: <AE5J83na99@qsar.chem.msu.su>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: 2 Feb 1996 04:31:44 GMT
  12. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMRKJpUy4NqrwXLNJAQHnlwIAvHV8yyNVynNiaHE8SXRfuHc8z9eJP9F4
  15.     dxhjWuHRoHwZyx8WbVOvf96F12wIXBgpLaEDQI3YeMftDCeASZdRzA==
  16.     =n4sh
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. >> It requires every program to have the main() function (which 
  20. >> implementation is not allowed to supply) with parameters (void) or (int 
  21. >> argc, int*argv[]). However, Windows programs have another convention: 
  22. >> prrogram must contain the function  int WinMain
  23.  
  24. I remember reading that you can write a Windows program with a main() 
  25. function and the usual command line arguments, and then the Microsoft 
  26. compiler will then generate WinMain somehow....but that the "operating 
  27. system" does link to WinMain.
  28.  
  29.                  David
  30. ---
  31. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  32.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  33.   in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  34.